package com.hnu.store.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class Trade extends BaseEntity {

  private Integer id;
  private Integer saleId;
  private Integer buyId;
  private Integer sellId;
  private String workId;
  private Double tradePrice;
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date tradeTime;
  private String txHash;
  private String tradeCertification;
  private Integer isOwn;
  private Integer status;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getSaleId() {
    return saleId;
  }

  public void setSaleId(Integer saleId) {
    this.saleId = saleId;
  }

  public Integer getBuyId() {
    return buyId;
  }

  public void setBuyId(Integer buyId) {
    this.buyId = buyId;
  }

  public Integer getSellId() {
    return sellId;
  }

  public void setSellId(Integer sellId) {
    this.sellId = sellId;
  }

  public String getWorkId() {
    return workId;
  }

  public void setWorkId(String workId) {
    this.workId = workId;
  }

  public Double getTradePrice() {
    return tradePrice;
  }

  public void setTradePrice(Double tradePrice) {
    this.tradePrice = tradePrice;
  }

  public Date getTradeTime() {
    return tradeTime;
  }

  public void setTradeTime(Date tradeTime) {
    this.tradeTime = tradeTime;
  }

  public String getTxHash() {
    return txHash;
  }

  public void setTxHash(String txHash) {
    this.txHash = txHash;
  }

  public String getTradeCertification() {
    return tradeCertification;
  }

  public void setTradeCertification(String tradeCertification) {
    this.tradeCertification = tradeCertification;
  }

  public Integer getIsOwn() {
    return isOwn;
  }

  public void setIsOwn(Integer isOwn) {
    this.isOwn = isOwn;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Trade() {
  }

  public Trade(Integer id, Integer saleId, Integer buyId, Integer sellId, String workId,
      Double tradePrice, Date tradeTime, String txHash, String tradeCertification, Integer isOwn,
      Integer status) {
    this.id = id;
    this.saleId = saleId;
    this.buyId = buyId;
    this.sellId = sellId;
    this.workId = workId;
    this.tradePrice = tradePrice;
    this.tradeTime = tradeTime;
    this.txHash = txHash;
    this.tradeCertification = tradeCertification;
    this.isOwn = isOwn;
    this.status = status;
  }

  @Override
  public String toString() {
    return "Trade{" +
        "id=" + id +
        ", saleId=" + saleId +
        ", buyId=" + buyId +
        ", sellId=" + sellId +
        ", workId='" + workId + '\'' +
        ", tradePrice=" + tradePrice +
        ", tradeTime=" + tradeTime +
        ", txHash='" + txHash + '\'' +
        ", tradeCertification='" + tradeCertification + '\'' +
        ", isOwn=" + isOwn +
        ", status=" + status +
        '}';
  }
}
